package com.mz.mattress.client.api.resp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeviceStatusResp implements Serializable {

    private static final long serialVersionUID = 1L;

    //orderUserTimesId
    private Integer id;

    private Long memberId;

    private String deviceCode;

    //1online在线 0offline离线
    private Integer online;

    //信号值 0差 1良好 2优
    private Integer signal;

    //工作模式
    private Integer workMode;

    //00暂停  01启动 02未扫码
    //工作状态 0暂停 1启动 2未扫码
    private Integer workStatus;

    //检测状态 0未检测 1检测中 2数据异常 3未检测到数据
    private Integer inspectStatus;

    //设置温度 温度强度范围：0-65
    private Integer temper;

    //当前温度
    private Integer temperCur;

    //按摩强度 共振强度范围：0-10
    private Integer strength;

    //音量 音量大小范围：0-10
    private Integer volume;


    // -------------检测结果

    //心率 心率范围0-250，心率<60心动过缓,60-100心率正常，>100心动过速
    private Integer rate;

    //血氧 血氧范围0-100，血氧<95血氧低,95-100血氧正常
    private Integer oxygen;

    //微循环 微循环范围0-100，微循环<80微循环低,80-100微循环正常
    private Integer cycle;

    //疲劳指数 疲劳指数范围0-100，疲劳指数<15重度疲劳,15-25之间为轻度疲劳，>25为正常
    private Integer tired;

    //结束时间
    private String endTime;

    //体质结果
    //0001 为完美的平和体质
    //0002 为反复感冒的气虚体质
    //0003 为畏寒怕冷的阳虚体质
    //0004 为口燥咽干的阴虚体质
    //0005 为易倦嗜睡的痰湿体质
    //0006 为长痘易怒的湿热体质
    //0007 为失眠忧郁的气郁体质
    //0008 为血脉不畅的血瘀体质
    //0009 为易过敏的特禀体质
    private Integer results;

    //推荐模式
    private Integer suggestMode;

    public void Reset() {
        this.id = null;
        this.memberId = null;
        this.deviceCode = null;
        this.online = null;
        this.signal = null;
        this.workMode = null;
        this.workStatus = null;
        this.inspectStatus = null;
        this.temper = null;
        this.temperCur = null;
        this.strength = null;
        this.volume = null;
        this.rate = null;
        this.oxygen = null;
        this.cycle = null;
        this.tired = null;
        this.results = null;
    }

}
